#include <stdio.h>
#define NMASS	10

int main (int argc, const char * argv[]) {
	int c, i, nWhite, nOther;
	int ndigit[NMASS];
	
	nWhite = nOther = 0;
	for (i = 0; i < NMASS; ++i)
		ndigit[i] = 0;
	
	while ((c = getchar()) != EOF)
		if (c >= '0' && c <= '9')
			++ndigit[c-'0'];
		else if (c == ' ' || c == 'n' || c == '\t')
			++nWhite;
		else
			++nOther;
	printf("digits:");
	for (i = 0; i < NMASS; ++i)
		printf(" %d = %d;", i, ndigit[i]);
	printf("\nwhite space = %d, other = %d\n", nWhite, nOther);
	return 0;
}
